package com.lynn.blog.service;

import com.lynn.blog.common.ApiResponse;
import com.lynn.blog.dto.PostSaveDTO;
import com.lynn.blog.dto.PostUpdateDTO;
import com.mybatisflex.core.service.IService;
import com.lynn.blog.entity.Post;

import java.util.List;

/**
 *  服务层。
 *
 * @author root
 * @since 2024-07-15
 */
public interface PostService extends IService<Post> {

    Boolean savePost(PostSaveDTO pdtoost);

    ApiResponse<List<Post>> listPosts(Integer uid, Integer pageNum, Integer pageSize, Boolean createdAsc);

    Boolean updateByPostId(Integer id, PostUpdateDTO dto);
}
